package com.turing.post.tuxedo.util;

import java.io.Serializable;
import java.math.BigInteger;

import org.jdom2.Element;

import com.turing.post.util.PCPSApplicationException;

/**
 * 支付交易附加业务/服务/商品信息
 * 
 * @author yxb
 * 
 */
@SuppressWarnings("serial")
public class BusinessDetailObj implements Serializable {
	/**
	 * 业务类型(必填)
	 */
	public String businessType = "";

	/**
	 * 业务发生额(数字,精确到分)
	 */
	public BigInteger businessAmount = BigInteger.ZERO;

	/**
	 * 解析产品信息
	 * 
	 * @param node
	 * @throws Exception
	 */
	public void parseProdDetailObj(Element node)
			throws PCPSApplicationException {
		businessType = TransXmlHelper.getMandatoryString(node,
				TransXmlHelper.XML_NODE_BusinessType);
		businessAmount = TransXmlHelper.getInteger(node,
				TransXmlHelper.XML_NODE_BusinessAmount);
	}
}
